package DBLayer;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import ModelLayer.TreatmentCategory;

public class DBTreatCatTest {

	private DBTreatCat dbTreatCat;

	@Before
	public void setUp() throws Exception {
		
		dbTreatCat = new DBTreatCat();
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void test() 
	{
		try
		{
			ArrayList<TreatmentCategory> treatments = dbTreatCat.getTreatCategories();
			
			System.out.println("Behandlings kategorier:");
			
			for(TreatmentCategory treat : treatments)
			{
				System.out.println(treat.getName());
			}
		}
		catch(Exception err)
		{
			fail("Not yet implemented");
		}
	}
}
